home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 124 / cd-rom 124.iso / edu / tuxmath / tuxmathscrabble / setup.exe / {app} / asymptopia / Tile.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2003-11-16  |  2.6 KB  |  50 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.2)
  3.  
  4. '''
  5. /***************************************************************************
  6.  
  7. \tAuthor \t\t\t:Charles B. Cosse 
  8. \t
  9. \tEmail\t\t\t:ccosse@asymptopia.com
  10. \t\t\t\t\t
  11. \t\t\t\t\t
  12. \tCopyright\t\t:(C) 2002,2003 Asymptopia Software.
  13. \t
  14.  ***************************************************************************/
  15. /***************************************************************************
  16.                           Tile.py
  17.  
  18.  ***************************************************************************/
  19.  
  20. /***************************************************************************
  21.  *                                                                         *
  22.  *   This program is free software; you can redistribute it and/or modify  *
  23.  *   it under the terms of the GNU General Public License as published by  *
  24.  *   the Free Software Foundation; either version 2 of the License, or     *
  25.  *   (at your option) any later version. (Please note that if you use this *
  26.  *   code you must give credit by including the Author and Copyright       *
  27.  *   info at the top of this file).                                        *
  28.  ***************************************************************************/
  29. '''
  30. from myutil import *
  31.  
  32. class Tile(pygame.sprite.Sprite):
  33.     
  34.     def __init__(self, img, int_val, str_val):
  35.         pygame.sprite.Sprite.__init__(self)
  36.         (self.image, self.rect) = load_image(img, 1)
  37.         self.saved_center = None
  38.         self.int_val = int_val
  39.         self.str_val = str_val
  40.  
  41.     
  42.     def update(self):
  43.         self.rect.center = pygame.mouse.get_pos()
  44.  
  45.     
  46.     def reset(self):
  47.         self.rect.center = self.saved_center
  48.  
  49.  
  50.